package club.pchome;

import club.pchome.api.Swagger2Config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.*;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Component
@Configuration
@Import({ Swagger2Config.class })
@ComponentScan(basePackages = { "club.pchome" })
@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@EnableCaching// 开启缓存，需要显示的指定
//开发配置
@PropertySource(value = {"classpath:/config/config.properties"} , encoding="utf-8")
public class Start{
    public static void main( String[] args ){
        SpringApplication.run(Start.class, args);
    }
}
